package xyz.zhouzhaodong.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import xyz.zhouzhaodong.crm.dto.LeaveAbsenceDto;
import xyz.zhouzhaodong.crm.entity.LeaveAbsence;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 请假 Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-21
 */
public interface LeaveAbsenceMapper extends BaseMapper<LeaveAbsence> {

    /**
     * 查询
     * @param leaveAbsenceDto
     * @return
     */
    List<LeaveAbsenceDto> selectLeaveAbsence(@Param("leaveAbsenceDto") LeaveAbsenceDto leaveAbsenceDto);

    /**
     * 分页查询
     * @param leaveAbsenceDto
     * @param page
     * @return
     */
    IPage<LeaveAbsenceDto> selectLeaveAbsence(@Param("leaveAbsenceDto") LeaveAbsenceDto leaveAbsenceDto, Page<LeaveAbsenceDto> page);
    
}
